<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>193-工厂模式函数.html</title>
</head>
<body>
	
</body>
<script>
	function crearePerson(){

		this.name = name;
		this.age = age;
		this.sayName = function(){
			console.log("I chris"+this.name);
		}
		this.sayAge = function(){
			console.log("I chris"+this.age+"years old");
		}
	};
 
</script>
</html>